#pragma once


#include "CalculationPage.h"
#include "afxcmn.h"
#include "afxwin.h"
#include "hyperlink.h"

class CCalculation_Break : public CCalculationPage
{
        DECLARE_DYNCREATE(CCalculation_Break)

    public:
        CCalculation_Break(CWnd* pParent = NULL);
        virtual ~CCalculation_Break();

        // Dialogfelddaten
        enum { IDD = IDD_PAGE1_SUB_BREAK };

        BOOL         Create(CWnd*);
        virtual BOOL OnInitDialog();

        void OnPointsChanged();
        void OnLevelChanged();

    protected:
        virtual void DoDataExchange(CDataExchange* pDX);

        DECLARE_MESSAGE_MAP()

        void    FillList();
        void    AddHighestSpell(const CString& cat, IntArray& spell_ids, IntArray& spell_levels, int level,int dex);
        void    AddSpell(const CString& name, int casttime_ms, int cur_dex);
        int     GetFinalDex();

    private:
        CListCtrl wnd_list;
        CHyperLink wnd_link;
};
